<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Base extends Controller_Template {
	
	public $template = 'admin/base';
	public $shop;
	
	public function action_index()
	{
		$auth = Auth::instance();
		$this->shop = new Model_Admin_Shop();
		
		
		if($auth->logged_in("admin") == 0)
		{
			Request::initial()->redirect('/index.php/');
			return parent::before();
		}
		
		
		//	Вивід новігації
		$this->template->nav = View::factory('admin/nav');
		
		
	}

} // End Welcome
